//
//  NavigationControllerHelper.m
//  OfficeBook
//
//  Created by 孙晓奇 on 15/12/15.
//  Copyright © 2015年 sunny. All rights reserved.
//

#import "NavigationControllerHelper.h"

@implementation NavigationControllerHelper

// 使用image作为navBar导致controller View整体下移64.0f
+ (UINavigationController *)initNavWithRootViewController:(UIViewController *)vc {
    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:vc];
    [nav.navigationBar setBackgroundImage:[UIImage imageNamed:@"navigationBar"] forBarMetrics:UIBarMetricsDefault];
    nav.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName : [UIColor whiteColor]};
    return nav;
}
@end
